<!DOCTYPE html>
<html>
<?php echo $this->fetch('head.html'); ?>
<body>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="/index.php?m=goldgoods"><i class="back"></i></a></div>
      <div class="t_main">确认兑换</div>
    </div>
    <div class="paddingheight"></div>
    <form method="post" action="/index.php?m=goldorder&a=order">
<input type="hidden" name="id" value="<?php echo $this->_var['data']['id']; ?>">
<input type="hidden" name="back_url" value="<?php echo $this->_var['back_url']; ?>" />
    <div class="comblock">
      <div class="address_info">
      <?php $_from = $this->_var['address']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('k', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['k'] => $this->_var['c']):
?>
 
    
        <p class="info">
        <a href="/index.php?m=user_address&a=add&id=<?php echo $this->_var['c']['id']; ?>">
        <input type="hidden" name="user_address_id"  value="<?php echo $this->_var['c']['id']; ?>">  <span class="name"><?php echo $this->_var['c']['truename']; ?></span> <span class="tel"><?php echo $this->_var['c']['telephone']; ?></span><br>
         <?php echo $this->_var['dist_list'][$this->_var['c']['province_id']]; ?> <?php echo $this->_var['dist_list'][$this->_var['c']['city_id']]; ?> <?php echo $this->_var['dist_list'][$this->_var['c']['town_id']]; ?> <?php echo $this->_var['c']['address']; ?> <?php echo $this->_var['c']['sushe']; ?>  
         </a>
         </p>
         <?php endforeach; else: ?>
         <p class="info">
         	 <a href="/index.php?m=user_address&a=add">
             添加收货地址
             </a>
         </p>
         <?php endif; unset($_from); ?><?php $this->pop_vars();; ?> 
      </div>
    </div>
    
    <div class="comblock">
  

  <table class="cart_change_table">
   <tr>
      <th>商品名称：</th>
      <td><p><?php echo $this->_var['data']['title']; ?></p></td>
    </tr>
    <tr>
      <th>所需积分：</th>
      <td><span class="red"><?php echo $this->_var['data']['gold']; ?></span></td>
    </tr>
    <tr>
      <th>订单备注：</th>
      <td>
      <textarea class="area" name="comment" placeholder="可填写您对口味以及配送时间的要求等"></textarea>
      </td>
    </tr>
    <tr>
     <th colspan="2"></th>
    </tr>
  </table>
</div>
    
    <button type="submit" class="cart_change_btn">确认兑换</button>
   
  </div>
</div>

 
  <?php echo $this->fetch('footer.html'); ?> </div>
</body>
</html>